package sort;

import java.util.Random;

/**
 * 该程序测试常见排序算法运行时间
 */
public class TestSortTime {
    public static void orderArray(int[] array){
        for (int i = 0; i < array.length; i++) {
            array[i] = i;
        }
    }
    public static void notOrderArray(int[] array){
        for (int i = 0; i < array.length; i++) {
            array[i] = array.length - i;
        }
    }
    public static void notOrderArrayRandom(int[] array){
        Random random = new Random();
        for (int i = 0; i < array.length; i++) {
            array[i] = random.nextInt(10_0000 );
        }
    }
}
